{extend name="public:base" /}
{block name="js"}
<script type="text/javascript" src="__STATIC__/js/plugins/chosen/chosen.jquery.js"></script>
{/block}
{block name="breadcrumbHeader"}
<h1>404</h1>
{/block}
{block name="breadcrumb"}
<ol class="breadcrumb">
    <li class="breadcrumb-item">
        <a href="/admin/index/index.html">主页</a>
    </li>
    <li class="breadcrumb-item active">
        <strong>错误</strong>
    </li>
</ol>
{/block}
{block name="content"}
<div class="middle-box text-center animated fadeInDown">
    <h1>404</h1>
    <h3 class="font-bold"><?php echo(strip_tags($msg));?></h3>

    <div class="error-desc">
        对不起，您正在寻找的页面已经无法找到。尝试检查URL的错误，然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。
        <?php switch ($code) {?>
        <?php case 1:?>
        <h1>:)</h1>
        <p class="success"><?php echo(strip_tags($msg));?></p>
        <?php break;?>
        <?php case 0:?>
        <?php break;?>
        <?php } ?>
        <p class="detail"></p>
        <p class="jump">
            页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b>
        </p>
    </div>
</div>
{/block}
{block name='js'}
<script type="text/javascript">
    (function () {
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
{/block}
